import 'dart:convert';

import 'package:hotpot/generated/json/base/json_field.dart';
import 'package:hotpot/generated/json/res_country.g.dart';

@JsonSerializable()
class ResCountry {

	int? id;
	String? name;
	String? code;
	@JSONField(name: "address_format")
	String? addressFormat;
	@JSONField(name: "address_view_id")
	bool? addressViewId;
	@JSONField(name: "currency_id")
	List<String>? currencyId;
	@JSONField(name: "image_url")
	String? imageUrl;
	@JSONField(name: "phone_code")
	int? phoneCode;
	@JSONField(name: "country_group_ids")
	List<String>? countryGroupIds;
	@JSONField(name: "state_ids")
	List<String>? stateIds;
	@JSONField(name: "name_position")
	String? namePosition;
	@JSONField(name: "vat_label")
	bool? vatLabel;
	@JSONField(name: "state_required")
	bool? stateRequired;
	@JSONField(name: "zip_required")
	bool? zipRequired;
	@JSONField(name: "__last_update")
	String? sLastUpdate;
	@JSONField(name: "display_name")
	String? displayName;
	@JSONField(name: "create_uid")
	List<String>? createUid;
	@JSONField(name: "create_date")
	String? createDate;
	@JSONField(name: "write_uid")
	List<String>? writeUid;
	@JSONField(name: "write_date")
	String? writeDate;
  
  ResCountry();

  factory ResCountry.fromJson(Map<String, dynamic> json) => $ResCountryFromJson(json);

  Map<String, dynamic> toJson() => $ResCountryToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}